#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int main()
{
	int n = 0;
	int count = 0;
	scanf("%d", &n);

	do
	{
		count++;
		n /= 10;
	} while (n != 0);

	printf("%d\n", count);

	
	return	0;	
}